package CompositePattern;

public abstract class Entry {
    public abstract String getName();
    public abstract int getSize();
    public Entry add(Entry entry) throws FileThreatMentException{
        throw new FileThreatMentException();
    }
    public void printList(){
        printList("");
    }
    protected abstract void printList(String prefix);

    @Override
    public String toString() {
        return getName()+" ("+getSize()+")";
    }
}
